package com.layblog.common.exception;

/**
 * 自定义异常
 *
 * @Author 林必昭
 * @Date 2021/7/16 10:00
 */
public class LayCustomException extends RuntimeException {

    private int code;

    public LayCustomException() {
    }

    public LayCustomException(int code) {
        this.code = code;
    }

    public LayCustomException(String message) {
        super(message);
    }

    public LayCustomException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
